package com.pinkpig.excel.metadata;

import java.util.ArrayList;
import java.util.List;

/**
 * 索引元数据
 * @author vincenfeng
 */
public class IndexMetaData extends MetaData {

    private String indexName;

    private boolean isUnique;

    private List<ColumnMetaData> indexColumns = new ArrayList<>();;

    public void addIndexColumn(ColumnMetaData columnMetaData){
        indexColumns.add(columnMetaData);
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public boolean isUnique() {
        return isUnique;
    }

    public void setUnique(boolean unique) {
        isUnique = unique;
    }

    public List<ColumnMetaData> getIndexColumns() {
        return indexColumns;
    }

    public void setIndexColumns(List<ColumnMetaData> indexColumns) {
        this.indexColumns = indexColumns;
    }
}
